﻿@using BK.UI.Web.Models
@model AccountViewModel

@{
    ViewBag.Title = "title";
	Layout = "~/Views/Shared/_Layout.cshtml";
}

@{	using (Html.BeginForm("Save"))
    {
        if (Model == null)
        {
            ViewBag.Title = "Створення нової валюти";
        }
        else
        {
            ViewBag.Title = "Редагування валюти";
        }
        Layout = "~/Views/Shared/_Layout.cshtml";
    

    <h2>@ViewBag.Title</h2>

    @Html.EditorFor(x => x.Account.Name, "StringEditor")
    @*@Html.EditorFor(x => x.Account.Currency.ShortName, "StringEditor")*@
    
	@(Html.Telerik().ComboBox()
				.Name("Currencies")
				.AutoFill(true)
				.DataBinding(binding => binding.Ajax().Select("AjaxCurrenciesLoad",	"Accounts"))
				.Filterable(filtering =>
				{
					filtering.FilterMode(AutoCompleteFilterMode.Contains);
				})
				.HighlightFirstMatch(true)
		)
	
	<div class="button-container">
		<input type="submit" value="Вхід" />
	</div>
	}
}